package com.prs.crm.service.cdxh.impl;

import com.prs.crm.dao.cdxh.ProvideRegimeDao;
import com.prs.crm.domain.cdxh.production.ProvideRegime;
import com.prs.crm.service.cdxh.ProvideRegimeService;
import com.prs.crm.service.impl.BaseServiceImpl;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2010-12-3 上午10:02:00
 * 简单说明
 */

public class ProvideRegimeServiceImpl extends
		BaseServiceImpl<ProvideRegime, ProvideRegimeDao> implements
		ProvideRegimeService {

	@Override
	public ProvideRegime getProvideRegime(String productStyles,
			String recodeStyle, String classS, String machiness) {
		// TODO Auto-generated method stub
		return this.getDao().getProvideRegime(productStyles, recodeStyle, classS, machiness);
	}

	@Override
	public void setProvideRegime(ProvideRegime provideRegime) {
		this.getDao().setProvideRegime(provideRegime);
	}
	/**
	 * 查询是否有重复的机号班次
	 * @param productStyle
	 * @param machineNums
	 * @param classNums
	 * @return
	 */	
public	ProvideRegime  getReplaceProvideRegime(String productStyle,String machineNums,String classNums,String recodeStyle){
		return this.getDao().getReplaceProvideRegime(productStyle, machineNums, classNums,recodeStyle);
	}
}
